﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using Yipusoft.Evaluate.Model;

namespace Yipusoft.Evaluate.BLL
{
    public class InspectItem
    {
        public static bool Exsits(int ItemID)
        {
            Yipusoft.Evaluate.DAL.InspectItem dal = new Yipusoft.Evaluate.DAL.InspectItem();
            return dal.Exsits(ItemID);
        }
        public static int Insert(InspectItemInfo InspectItem)
        {
            Yipusoft.Evaluate.DAL.InspectItem dal = new Yipusoft.Evaluate.DAL.InspectItem();
            return dal.Insert(InspectItem);
        }
        public static bool Update(InspectItemInfo InspectItem)
        {
            Yipusoft.Evaluate.DAL.InspectItem dal = new Yipusoft.Evaluate.DAL.InspectItem();
            return dal.Update(InspectItem);
        }
        public static bool Delete(int ItemID)
        {
            Yipusoft.Evaluate.DAL.InspectItem dal = new Yipusoft.Evaluate.DAL.InspectItem();
            return dal.Delete(ItemID);
        }
        public static InspectItemInfo GetInspectItem(int ItemID)
        {
            Yipusoft.Evaluate.DAL.InspectItem dal = new Yipusoft.Evaluate.DAL.InspectItem();
            return dal.GetInspectItem(ItemID);
        }
        public static List<InspectItemInfo> GetList(string StrWhere)
        {
            Yipusoft.Evaluate.DAL.InspectItem dal = new Yipusoft.Evaluate.DAL.InspectItem();
            return dal.GetList(StrWhere);
        }
    }
}
